package com.xdf.zipperdye.model;

import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

public class Contact implements Serializable {
    private Integer iid;

    //@Pattern(regexp = "^[0-9a-zA-z_]{6,}$")
    private String sid;

    private String sname;

    private String category_sid;

    private String alias;

    private String sales_man;

    private String remark;
    private Integer state;

    private Date nullify_time;
    private String nullify_remark;
    private String nullify_operator;
    private String nullify_ip;

    private Date create_time;

    private static final long serialVersionUID = 1L;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public void setNullify_ip(String nullify_ip) {
        this.nullify_ip = nullify_ip;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Date getNullify_time() {
        return nullify_time;
    }

    public void setNullify_time(Date nullify_time) {
        this.nullify_time = nullify_time;
    }

    public String getNullify_remark() {
        return nullify_remark;
    }

    public void setNullify_remark(String nullify_remark) {
        this.nullify_remark = nullify_remark;
    }

    public String getNullify_operator() {
        return nullify_operator;
    }

    public void setNullify_operator(String nullify_operator) {
        this.nullify_operator = nullify_operator;
    }

    public String getNullify_ip() {
        return nullify_ip;
    }

    public Integer getIid() {
        return iid;
    }

    public void setIid(Integer iid) {
        this.iid = iid;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid == null ? null : sid.trim();
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname == null ? null : sname.trim();
    }

    public String getCategory_sid() {
        return category_sid;
    }

    public void setCategory_sid(String category_sid) {
        this.category_sid = category_sid == null ? null : category_sid.trim();
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    public String getSales_man() {
        return sales_man;
    }

    public void setSales_man(String sales_man) {
        this.sales_man = sales_man == null ? null : sales_man.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "Contact{" +
                "iid=" + iid +
                ", sid='" + sid + '\'' +
                ", sname='" + sname + '\'' +
                ", category_sid='" + category_sid + '\'' +
                ", alias='" + alias + '\'' +
                ", sales_man='" + sales_man + '\'' +
                ", remark='" + remark + '\'' +
                ", state=" + state +
                ", nullify_time=" + nullify_time +
                ", nullify_remark='" + nullify_remark + '\'' +
                ", nullify_operator='" + nullify_operator + '\'' +
                ", nullify_ip='" + nullify_ip + '\'' +
                ", create_time=" + create_time +
                '}';
    }
}